package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PURCHASE_ORDER_BUDGET database table.
 * 
 */
@Entity
@Table(name="PURCHASE_ORDER_BUDGET")
@NamedQueries({
    @NamedQuery(name = "PurchaseOrderBudget.findAll", query = " SELECT c FROM PurchaseOrderBudget c "),
    @NamedQuery(name = "PurchaseOrderBudget.findById", query = " SELECT c FROM PurchaseOrderBudget c WHERE c.id = :Id "),    
})
public class PurchaseOrderBudget extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PurchaseOrderBudgetPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BUILDING_PHASE", length=30)
	private String buildingPhase;

	@Column(name="CONSTRUCTION_ADJUST", precision=22)
	private BigDecimal constructionAdjust;

	@Column(name="CONSTRUCTION_BUDGET", precision=22)
	private BigDecimal constructionBudget;

	@Column(name="CONSTRUCTION_COST", precision=22)
	private BigDecimal constructionCost;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="CUMULATIVE_QTY", precision=18, scale=3)
	private BigDecimal cumulativeQty;

	@Column(name="ITEM_CODE", length=30)
	private String itemCode;

	@Column(name="ITEM_DESC", length=100)
	private String itemDesc;

	@Column(name="ITEM_RATE", precision=16, scale=4)
	private BigDecimal itemRate;

	@Column(name="ITEM_UM", length=30)
	private String itemUm;

	@Column(name="ITEM_UM_QTY", precision=18, scale=3)
	private BigDecimal itemUmQty;

	@Column(name="ITEM_VALUE_FC", precision=18, scale=2)
	private BigDecimal itemValueFc;

	@Column(name="ITEM_VALUE_LC", precision=18, scale=2)
	private BigDecimal itemValueLc;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="PO_ITEM_RATE", precision=18, scale=4)
	private BigDecimal poItemRate;

	@Column(name="PO_ITEM_UM", length=30)
	private String poItemUm;

	@Column(name="PO_ITEM_UM_QTY", precision=18, scale=3)
	private BigDecimal poItemUmQty;

	@Column(name="POR_ITEM_UM", length=30)
	private String porItemUm;

	@Column(name="POR_NO", precision=6)
	private BigDecimal porNo;

	@Column(name="POR_SEQ", precision=4)
	private BigDecimal porSeq;

	@Column(name="POR_SEQ2", precision=4)
	private BigDecimal porSeq2;

	@Column(name="POR_SERIES", length=4)
	private String porSeries;

	@Column(name="POR_TYPE", length=3)
	private String porType;

	@Column(name="PROMOTION_ADJUST", precision=22)
	private BigDecimal promotionAdjust;

	@Column(name="PROMOTION_BUDGET", precision=22)
	private BigDecimal promotionBudget;

	@Column(name="PROMOTION_COST", precision=22)
	private BigDecimal promotionCost;

	@Column(name="PURCHASE_ORDER_BUDGET_ID", length=100)
	private String purchaseOrderBudgetId;

	@Column(name="PURCHASE_ORDERS_ID", length=100)
	private String purchaseOrdersId;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="REQUIRED_BY_DATE")
	private Date requiredByDate;

	@Column(name="SERVICES_ADJUST", precision=22)
	private BigDecimal servicesAdjust;

	@Column(name="SERVICES_BUDGET", precision=22)
	private BigDecimal servicesBudget;

	@Column(name="SERVICES_COST", precision=22)
	private BigDecimal servicesCost;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TOTAL_ADJUST", precision=22)
	private BigDecimal totalAdjust;

	@Column(name="TOTAL_BUDGET", precision=22)
	private BigDecimal totalBudget;

	@Column(name="TOTAL_COST", precision=22)
	private BigDecimal totalCost;

	@Column(name="UNIT_ID", precision=22)
	private BigDecimal unitId;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="ZONE_CODE", length=30)
	private String zoneCode;
	
	@Column(name="PO_ITEM_PRICE")
	private BigDecimal poItemPrice;
	
	@Column(name="PO_DISCOUNT_AMOUNT")
	private BigDecimal poDicountAmount;
	
	@Column(name="PO_NET_ITEM_PRICE_LC")
	private BigDecimal poNetItemPriceLc;
	
	@Column(name="PO_VAT_AMOUNT_LC")
	private BigDecimal poVatAmountLc;

	@Column(name="PO_NET_VALUE_LC")
	private BigDecimal poNetValueLc;
	
	@Column(name="ADJUST_PO_QTY")
	private BigDecimal adjustPoQty;
	
	@Column(name="ADJUST_FLAG")
	private String adjustFlag;
	
	@Column(name="PO_LINE_STATUS")
	private String poLineStatus;	

	/**
	 * @return the poLineStatus
	 */
	public String getPoLineStatus() {
		return poLineStatus;
	}

	/**
	 * @param poLineStatus the poLineStatus to set
	 */
	public void setPoLineStatus(String poLineStatus) {
		this.poLineStatus = poLineStatus;
	}

	/**
	 * @return the adjustPoQty
	 */
	public BigDecimal getAdjustPoQty() {
		return adjustPoQty;
	}

	/**
	 * @param adjustPoQty the adjustPoQty to set
	 */
	public void setAdjustPoQty(BigDecimal adjustPoQty) {
		this.adjustPoQty = adjustPoQty;
	}

	/**
	 * @return the adjustFlag
	 */
	public String getAdjustFlag() {
		return adjustFlag;
	}

	/**
	 * @param adjustFlag the adjustFlag to set
	 */
	public void setAdjustFlag(String adjustFlag) {
		this.adjustFlag = adjustFlag;
	}

	/**
	 * @return the poItemPrice
	 */
	public BigDecimal getPoItemPrice() {
		return poItemPrice;
	}

	/**
	 * @param poItemPrice the poItemPrice to set
	 */
	public void setPoItemPrice(BigDecimal poItemPrice) {
		this.poItemPrice = poItemPrice;
	}

	/**
	 * @return the poDicountAmount
	 */
	public BigDecimal getPoDicountAmount() {
		return poDicountAmount;
	}

	/**
	 * @param poDicountAmount the poDicountAmount to set
	 */
	public void setPoDicountAmount(BigDecimal poDicountAmount) {
		this.poDicountAmount = poDicountAmount;
	}

	/**
	 * @return the poNetItemPriceLc
	 */
	public BigDecimal getPoNetItemPriceLc() {
		return poNetItemPriceLc;
	}

	/**
	 * @param poNetItemPriceLc the poNetItemPriceLc to set
	 */
	public void setPoNetItemPriceLc(BigDecimal poNetItemPriceLc) {
		this.poNetItemPriceLc = poNetItemPriceLc;
	}

	/**
	 * @return the poVatAmountLc
	 */
	public BigDecimal getPoVatAmountLc() {
		return poVatAmountLc;
	}

	/**
	 * @param poVatAmountLc the poVatAmountLc to set
	 */
	public void setPoVatAmountLc(BigDecimal poVatAmountLc) {
		this.poVatAmountLc = poVatAmountLc;
	}

	/**
	 * @return the poNetValueLc
	 */
	public BigDecimal getPoNetValueLc() {
		return poNetValueLc;
	}

	/**
	 * @param poNetValueLc the poNetValueLc to set
	 */
	public void setPoNetValueLc(BigDecimal poNetValueLc) {
		this.poNetValueLc = poNetValueLc;
	}

	public PurchaseOrderBudget() {
    }

	public PurchaseOrderBudgetPK getId() {
		return this.id;
	}

	public void setId(PurchaseOrderBudgetPK id) {
		this.id = id;
	}
	
	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public BigDecimal getConstructionAdjust() {
		return this.constructionAdjust;
	}

	public void setConstructionAdjust(BigDecimal constructionAdjust) {
		this.constructionAdjust = constructionAdjust;
	}

	public BigDecimal getConstructionBudget() {
		return this.constructionBudget;
	}

	public void setConstructionBudget(BigDecimal constructionBudget) {
		this.constructionBudget = constructionBudget;
	}

	public BigDecimal getConstructionCost() {
		return this.constructionCost;
	}

	public void setConstructionCost(BigDecimal constructionCost) {
		this.constructionCost = constructionCost;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getCumulativeQty() {
		return this.cumulativeQty;
	}

	public void setCumulativeQty(BigDecimal cumulativeQty) {
		this.cumulativeQty = cumulativeQty;
	}

	public String getItemCode() {
		return this.itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public String getItemDesc() {
		return this.itemDesc;
	}

	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	public BigDecimal getItemRate() {
		return this.itemRate;
	}

	public void setItemRate(BigDecimal itemRate) {
		this.itemRate = itemRate;
	}

	public String getItemUm() {
		return this.itemUm;
	}

	public void setItemUm(String itemUm) {
		this.itemUm = itemUm;
	}

	public BigDecimal getItemUmQty() {
		return this.itemUmQty;
	}

	public void setItemUmQty(BigDecimal itemUmQty) {
		this.itemUmQty = itemUmQty;
	}

	public BigDecimal getItemValueFc() {
		return this.itemValueFc;
	}

	public void setItemValueFc(BigDecimal itemValueFc) {
		this.itemValueFc = itemValueFc;
	}

	public BigDecimal getItemValueLc() {
		return this.itemValueLc;
	}

	public void setItemValueLc(BigDecimal itemValueLc) {
		this.itemValueLc = itemValueLc;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getPoItemRate() {
		return this.poItemRate;
	}

	public void setPoItemRate(BigDecimal poItemRate) {
		this.poItemRate = poItemRate;
	}

	public String getPoItemUm() {
		return this.poItemUm;
	}

	public void setPoItemUm(String poItemUm) {
		this.poItemUm = poItemUm;
	}

	public BigDecimal getPoItemUmQty() {
		return this.poItemUmQty;
	}

	public void setPoItemUmQty(BigDecimal poItemUmQty) {
		this.poItemUmQty = poItemUmQty;
	}

	public String getPorItemUm() {
		return this.porItemUm;
	}

	public void setPorItemUm(String porItemUm) {
		this.porItemUm = porItemUm;
	}

	public BigDecimal getPorNo() {
		return this.porNo;
	}

	public void setPorNo(BigDecimal porNo) {
		this.porNo = porNo;
	}

	public BigDecimal getPorSeq() {
		return this.porSeq;
	}

	public void setPorSeq(BigDecimal porSeq) {
		this.porSeq = porSeq;
	}

	public BigDecimal getPorSeq2() {
		return this.porSeq2;
	}

	public void setPorSeq2(BigDecimal porSeq2) {
		this.porSeq2 = porSeq2;
	}

	public String getPorSeries() {
		return this.porSeries;
	}

	public void setPorSeries(String porSeries) {
		this.porSeries = porSeries;
	}

	public String getPorType() {
		return this.porType;
	}

	public void setPorType(String porType) {
		this.porType = porType;
	}

	public BigDecimal getPromotionAdjust() {
		return this.promotionAdjust;
	}

	public void setPromotionAdjust(BigDecimal promotionAdjust) {
		this.promotionAdjust = promotionAdjust;
	}

	public BigDecimal getPromotionBudget() {
		return this.promotionBudget;
	}

	public void setPromotionBudget(BigDecimal promotionBudget) {
		this.promotionBudget = promotionBudget;
	}

	public BigDecimal getPromotionCost() {
		return this.promotionCost;
	}

	public void setPromotionCost(BigDecimal promotionCost) {
		this.promotionCost = promotionCost;
	}

	public String getPurchaseOrderBudgetId() {
		return this.purchaseOrderBudgetId;
	}

	public void setPurchaseOrderBudgetId(String purchaseOrderBudgetId) {
		this.purchaseOrderBudgetId = purchaseOrderBudgetId;
	}

	public String getPurchaseOrdersId() {
		return this.purchaseOrdersId;
	}

	public void setPurchaseOrdersId(String purchaseOrdersId) {
		this.purchaseOrdersId = purchaseOrdersId;
	}

	public Date getRequiredByDate() {
		return this.requiredByDate;
	}

	public void setRequiredByDate(Date requiredByDate) {
		this.requiredByDate = requiredByDate;
	}

	public BigDecimal getServicesAdjust() {
		return this.servicesAdjust;
	}

	public void setServicesAdjust(BigDecimal servicesAdjust) {
		this.servicesAdjust = servicesAdjust;
	}

	public BigDecimal getServicesBudget() {
		return this.servicesBudget;
	}

	public void setServicesBudget(BigDecimal servicesBudget) {
		this.servicesBudget = servicesBudget;
	}

	public BigDecimal getServicesCost() {
		return this.servicesCost;
	}

	public void setServicesCost(BigDecimal servicesCost) {
		this.servicesCost = servicesCost;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public BigDecimal getTotalAdjust() {
		return this.totalAdjust;
	}

	public void setTotalAdjust(BigDecimal totalAdjust) {
		this.totalAdjust = totalAdjust;
	}

	public BigDecimal getTotalBudget() {
		return this.totalBudget;
	}

	public void setTotalBudget(BigDecimal totalBudget) {
		this.totalBudget = totalBudget;
	}

	public BigDecimal getTotalCost() {
		return this.totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getUnitId() {
		return this.unitId;
	}

	public void setUnitId(BigDecimal unitId) {
		this.unitId = unitId;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}